$(function(){
	post();
});
function post(){
	$.ajax({
		url:'consultDetail.do',
		type:'post',
		dataType:'json',
		success:function(data){
			show(data);
		}
	});
}
function show(data){
	$('table').bootstrapTable({
		data:data,
		striped: true,
        undefinedText: "-",
        pagination: true, 
        paginationLoop:true,
        showToggle: true,
        pageNumber: 1,
        showPaginationSwitch:true, 
        pageSize: 5,
        search: true, 
        idField: "id",
        columns:[
        	{
        		title:'文件',
        		field:'fileName',
        		align:'center'
        	},
        	{
        		title:'下载人',
        		field:'loginName',
        		align:'center'
        	}
        ]
	});
}